package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.MeterBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName meterBillController
 * @date 2019/12/5 13:05
 * @description: TODO
 */
@Controller
@RequestMapping("/meterBill")
public class meterBillController {

    @Autowired
    MeterBillService meterBillService;

    /**
     * 签约测试
     * @param params
     * @return
     */
    @ResponseBody
    @PostMapping("/GetMeterBill")
    public JsonResult GetMeterBill(@RequestBody Map<String,Object> params){
        return meterBillService.GetMeterBill(params);
    }

    /**
     *退租测试
     */
    @ResponseBody
    @PostMapping("/GatWithOut")
    public JsonResult GatWithOut(@RequestBody Map<String,Object> params){
        return meterBillService.GatWithOut(params);
    }
}
